Fixes coverage reporting and limits it to main branches only #235
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR speeds up PR builds by more than a minute if there are tests in the package and also makes coverage reporting reliable again:
covr::codecovcall uses an old API that does not support organization tokens and thus we have also used the global GH token. We now use the codecov upload action with our organization token. To enable this, I needed to add a custom report format. In case Adds the simple codecov format to make using the codecov action easier r-lib/covr#616 is merged, we could replace this.check.ymlby introducing a separatecoverage-reporting.ymlthat only execute coverage and only does so on the main branch. Not sure whether it is worth the effort yet to split up check.yml, given that it is somewhat small still.